package com.mer.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * @program: IIPhase-project
 * @description: 课程实体类
 * @author: 陈铠
 * @create: 2021-10-19 10:00
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("edu_subject")
@ApiModel(value = "Subject表中字段属性", description = "课程科目")
public class Subject implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "课程类别id")
    private String id;

    @ApiModelProperty(value = "课程类别名称")
    private String title;

    @ApiModelProperty(value = "父ID")
    private String parentId;

    @ApiModelProperty(value = "状态，1正常，0禁用")
    private String statusId;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "排序字段")
    private Integer sort;

    @ApiModelProperty(value = "创建时间")
    private String gmtCreate;

    @ApiModelProperty(value = "更新时间")
    private String gmtModified;

    //该课程下的所有子课程
    @TableField(exist = false)
    public List<Subject> children;
}
